<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>

<style>
div { color:red; }
</style>
</head>
<body>
<script>
$(document).ready(function(){

	$("#sweets").change(function () {
		var str = "";
		$("#sweets option:selected").each(function () {
			str += $(this).val() + " ";
		});

		$("div").text(str);
		$("input#test").val(str);
	})
	.change();

});
</script>
<select id="sweets" name="sweets">
<option value="1">Chocolate</option>
<option value="2">Candy</option>
<option value="3">Taffy</option>
<option value="4">Caramel</option>
<option value="5">Fudge</option>
<option value="6">Cookie</option>
</select>
<div></div>
<input type="text" id="test" name="test" value="" />
</body>
</html>